package net.dipper.tankwar.game.ui;

import java.io.IOException;

import javax.xml.parsers.ParserConfigurationException;

import org.xml.sax.SAXException;

import wnb.util.config.ConfigurationManager;
import wnb.util.ui.AnimationPane;

public class WelcomePane extends AnimationPane {
	WelcomeAnimation animation;

	public WelcomePane(int delay, boolean loop) {
		super(delay, loop);
		
		String name;
		try {
			name = ConfigurationManager.getAppSetting("game_name");
			String fileName = ConfigurationManager.getAppSetting("logo");
			this.animation = new WelcomeAnimation(name, fileName);
			setAnimation(this.animation);
		} catch (ParserConfigurationException | SAXException | IOException e) {
			e.printStackTrace();
		}
	}

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

}
